package study.javaee.practice.service;

import study.javaee.practice.dao.JpaUnitDAO;
import study.javaee.practice.entity.JpaUnit;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class JpaUnitservice {
    @Autowired
    JpaUnitDAO unitdao;

    public JpaUnit getbyname(String name){
        return unitdao.findByName(name);
    }
}
